package com.thd.springboottest.exceptionhandler.bean;

/**
 * com.thd.springboottest.exceptionhandler.bean.ResultEnum
 * User: devil13th
 * Date: 2019/11/24
 * Time: 0:59
 * Description: No Description
 */
public enum MessageEnum {
    NULL_ERROR(1000,"空指针"),
    SYSTEM_ERROR(1001, "系统异常"),
    NAME_EXCEEDED_CHARRACTER_LIMIT(2000, "姓名超过了限制，最大4个字符!");

    private Integer code;
    private String message;

    MessageEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
